package com.corpgovernment.organization.vo;

import lombok.Data;

import java.util.List;

@Data
public class GetOrgTreeRequest {

    /**
     * 组织编码
     **/
    private String orgId;

    /**
     * 是否查询人员
     **/
    private Boolean isSelectUser = false;

    /**
     * 是否穿透子公司
     **/
    private Boolean isErgodic = false;

    /**
     * 是否展示默认部门
     **/
    private Boolean isShowDefaultOrg = false;

    private List<String> orgIds;

    public GetOrgTreeRequest() {
    }

    public GetOrgTreeRequest(String orgId) {
        this.orgId = orgId;
    }

    public GetOrgTreeRequest(String orgId, Boolean isSelectUser) {
        this.orgId = orgId;
        this.isSelectUser = isSelectUser;
    }

    public GetOrgTreeRequest(String orgId, Boolean isSelectUser, Boolean isErgodic) {
        this.orgId = orgId;
        this.isSelectUser = isSelectUser;
        this.isErgodic = isErgodic;
    }

    public GetOrgTreeRequest(String orgId, Boolean isSelectUser, Boolean isErgodic, Boolean isShowDefaultOrg) {
        this.orgId = orgId;
        this.isSelectUser = isSelectUser;
        this.isErgodic = isErgodic;
        this.isShowDefaultOrg = isShowDefaultOrg;
    }
}
